package main

import "fmt"

type Request struct {
	Method string "method"
	Params string "params"
}

type PipeData struct {
	value   int
	handler func(int) int
	next    chan int
}

func handle(queue chan *PipeData) {
	for data := range queue {
		data.next <- data.handler(data.value)
	}
}

// 4.5.5 channel的传递
func main() {
	a := &Request{}
	fmt.Println(a.Method)
}
